<?php
class Wages_ctl extends Ctl{
    function __construct(){
    }
    function main(array $xxfget) {
        $this::sessver();
        $type=!empty($_POST['type'])?$_POST['type']:false;
        if(!$type){
            $uname=xdb::getInstance()->getvar("select realname from `user` where id=".XXF_UID);
        	$result=xdb::getInstance()->getarray("select * from wages where wname like '$uname'");
        	$zzzb=xdb::getInstance()->getvar("select id from user_groupx where gid=7 and uid=".XXF_UID);//7为在职在编，8为外聘
        	$wp=xdb::getInstance()->getvar("select id from user_groupx where gid=8 and uid=".XXF_UID);//7为在职在编，8为外聘
        	$this::show('wages',compact('result','zzzb','wp'));
        }
    }
}